package homeWork06;

public class Jiaoche extends Car {

    public Jiaoche(String brand, double price) {
        super(brand, price);
    }

    public Jiaoche() {
    }

    public void sell(int number){
        System.out.println("您租赁了"+this.getBrand()+"轿车,"+"价格为"+this.getPrice()+"共花费"+this.getPrice() * number);
    }
}
